/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2013
 */

package com.smg.community.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import javacommon.base.*;
import javacommon.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.smg.community.model.*;
import com.smg.community.dao.*;
import com.smg.community.service.*;
import com.smg.community.vo.query.*;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


public class SmgMemberPointDetail extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "SmgMemberPointDetail";
	public static final String ALIAS_FK_MEMBER_ID = "fkMemberId";
	public static final String ALIAS_NICK_NAME = "nickName";
	public static final String ALIAS_POINT = "point";
	public static final String ALIAS_DETAIL = "detail";
	public static final String ALIAS_CREATE_DATE = "createDate";
	public static final String ALIAS_TYPE = "type";
	
	//date formats
	public static final String FORMAT_CREATE_DATE = DATE_FORMAT;
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * fkMemberId       db_column: fkMemberId 
     */	
	private java.lang.Integer fkMemberId;
    /**
     * nickName       db_column: nickName 
     */	
	private java.lang.String nickName;
    /**
     * point       db_column: point 
     */	
	private java.lang.Integer point;
    /**
     * detail       db_column: detail 
     */	
	private java.lang.String detail;
    /**
     * createDate       db_column: createDate 
     */	
	private java.util.Date createDate;
    /**
     * type       db_column: type 
     */	
	private java.lang.Integer type;
	//columns END
	private int id ;
	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}


	public SmgMemberPointDetail(){
	}


	public void setFkMemberId(java.lang.Integer value) {
		this.fkMemberId = value;
	}
	
	public java.lang.Integer getFkMemberId() {
		return this.fkMemberId;
	}
	public void setNickName(java.lang.String value) {
		this.nickName = value;
	}
	
	public java.lang.String getNickName() {
		return this.nickName;
	}
	public void setPoint(java.lang.Integer value) {
		this.point = value;
	}
	
	public java.lang.Integer getPoint() {
		return this.point;
	}
	public void setDetail(java.lang.String value) {
		this.detail = value;
	}
	
	public java.lang.String getDetail() {
		return this.detail;
	}
	public String getCreateDateString() {
		return DateConvertUtils.format(getCreateDate(), FORMAT_CREATE_DATE);
	}
	public void setCreateDateString(String value) {
		setCreateDate(DateConvertUtils.parse(value, FORMAT_CREATE_DATE,java.util.Date.class));
	}
	
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}
	
	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	public void setType(java.lang.Integer value) {
		this.type = value;
	}
	
	public java.lang.Integer getType() {
		return this.type;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("FkMemberId",getFkMemberId())
			.append("NickName",getNickName())
			.append("Point",getPoint())
			.append("Detail",getDetail())
			.append("CreateDate",getCreateDate())
			.append("Type",getType())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof SmgMemberPointDetail == false) return false;
		if(this == obj) return true;
		SmgMemberPointDetail other = (SmgMemberPointDetail)obj;
		return new EqualsBuilder()
			.isEquals();
	}
}

